
package com.wyzz.hr.action;

import java.util.ArrayList;
import java.util.List;

import com.wyzz.hr.base.BaseAction;
import com.wyzz.hr.bo.IPositionBo;
import com.wyzz.hr.spring.SpringBeanFactory;

public class ShowPositionStructureAction extends BaseAction {

	public ShowPositionStructureAction() {
		nodeList = new ArrayList();
	}

	public String showPositionStructure() {
		IPositionBo positionBo = (IPositionBo) SpringBeanFactory
				.getBean("positionBo");
		nodeList = positionBo.getPositionTreeListNode();
		return "success";
	}

	public List getNodeList() {
		return nodeList;
	}

	public void setNodeList(List nodeList) {
		this.nodeList = nodeList;
	}

	private static final long serialVersionUID = 1L;
	private List nodeList;
}
